public class test {
    public static void testFunc(Person person){
        person.work();
    }
    public static void main(String[] args) {
        Person cook = new Cook("zhangsan",25,1.68);
        Person teacher = new Teacher("lisi",30,1.75);
        Person driver = new Driver("wangwu",30,1.83);
        testFunc(cook);
        testFunc(teacher);
        testFunc(driver);
    }
}
